<!--pages/authorize/authorize.wxml-->


<template>
	<view class="">
		<!--#ifndef MP-ALIPAY -->
		<view class='Popup' v-if="false" >
		   <image :src="logo_url" mode="widthFix"></image>
		   <!-- #ifdef MP -->
		   <view class='title'>授权提醒</view>
		   <view class='tip'>请授权获取信息，以便为您提供更好的服务</view>
		   <view class='bottom flex'>
		      <view class='item' @click='close'>随便逛逛</view>
			  <!-- #ifdef MP-WEIXIN -->
		      <button class='item grant'  type="primary" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="setUserInfo">去授权</button>
			  <!-- #endif -->
			  <!-- #ifdef MP-ALIPAY --> 
			  
		      <button class='item grant'  type="primary" open-type="getAuthorize"  @click="setAuthAlipay" lang="zh_CN">去授权</button>
			  
			  <!-- #endif -->
		   </view>
		   <!-- #endif -->
		   
		   <!-- #ifdef H5 -->
			<view class='title'> {{!is_weixin ? "登录提醒" :"授权提醒"}}   </view>
			<view class='tip'></view>
		   <view v-if="!is_weixin">
			   <view class="aui-flex">
			   	<view class="aui-flex-box">
			   		<input v-model="phone" id="phone" type="number" autocomplete="off" placeholder="请输入收件人手机号码">
			   	</view>
			   </view>
			   <view class="aui-flex">
			   	<view class="aui-flex-box">
			   		<input id="code" v-model="code" type="number" autocomplete="off" placeholder="请输入验证码">
			   	</view>
			   	<view class="aui-button-code">
			   		<input id="btnSendCode" type="button" :class="{'btn-dis': !this.canClick}" :value="content" @click="sendMessage()" />
			   	</view>
			   </view>
		   </view> 
		   
		   <view class='bottom flex' v-if="!is_weixin">
		      <view class='item' @click='close'>随便逛逛</view>
			  <button class="item grant" type="primary" @tap="setAuthH5">登录</button>
		   </view> 
		   <view class='bottom flex' v-else>
			   <view class='item' @click='close'>随便逛逛</view>
			   <button class="item grant" type="primary" @tap="setAuthGzh">去授权</button>
		   </view>
		   <!-- #endif -->
		</view>
		<view class='mask' v-if="false"  catchtouchmove="true" @click='close'></view>
		<!-- #endif -->
	</view>
</template>


<script>    
	import index from  './authorize.js'
	export default {
	  ...index, 
	} 
</script>

<style scoped>
	@import "./authorize.css"; 
</style>
